import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sca= new Scanner(System.in);
        System.out.println("请输入英制长度：");
        double foot1 = sca.nextDouble();
        double inch = sca.nextDouble();
        double foot2 = inch/12;
        double meters=(foot1+foot2)*0.3048;
        System.out.println(meters);
    }
}
